/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * 
 * 
 *
 * 
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Lb.Model
{

    /// <summary>
    ///  targetHealth
    /// </summary>
    public class TargetHealth
    {

        ///<summary>
        /// Target所在的虚拟服务器组Id, 与agId不能并存
        ///</summary>
        public string TargetGroupId{ get; set; }
        ///<summary>
        /// Target所在的高可用组Id，与targetGroupId不能并存
        ///</summary>
        public string AgId{ get; set; }
        ///<summary>
        /// Target所属实例的Id（type为vm或container时显示）
        ///</summary>
        public string InstanceId{ get; set; }
        ///<summary>
        /// Target所属的type，取值为vm、container或ip,默认为vm
        ///</summary>
        public string Type{ get; set; }
        ///<summary>
        /// 健康检查的port
        ///</summary>
        public int? Port{ get; set; }
        ///<summary>
        /// 该Target的权重，取值范围：0-100 ，默认为10。0表示不参与流量转发
        ///</summary>
        public int? Weight{ get; set; }
        ///<summary>
        /// 该Target的健康状态，取值为healthy、unhealthy
        ///</summary>
        public string Status{ get; set; }
        ///<summary>
        /// Target的IP地址。当Target type为vm或container时，表示vm或container的私网IP；当Target type为ip时，表示注册Target时指定的IP地址
        ///</summary>
        public string IpAddress{ get; set; }
    }
}
